<?php
if (Yii::app()->user->id) {
    $logoUrl = $this->createUrl('/case/admin');
} else {
    $logoUrl = $this->createUrl('/index.php');
}
?>
<?php $this->beginContent('//layouts/base'); ?>
<div class="container" id="page">
    <div class="clearfix" id="topbar">
        <?php $this->renderPartial('//layouts/_logo'); ?>

    </div>
    <div class="main_container container_16 clearfix">
        <?php if (PsSystemMessage::hasMessages()): ?>
        <div id="system-messages" class="">
            <?php PsSystemMessage::flash(); ?>
        </div>
        <?php endif; ?>
        
        <?php echo $content; ?>
    </div>
</div><!-- page -->
<?php $this->endContent(); ?>